package com.ufgov.pdf.entity.table;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

import com.ufgov.pdf.entity.Title;

/**
 * 对应xml中的table标签
 * 
 * @author lihh
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "table", propOrder = { "title", "trList" })
public class Table {

	@XmlElement(name = "title")
	private Title title;

	@XmlElementWrapper(name = "trs")
	@XmlElement(name = "tr")
	private List<Tr> trList;

	@XmlAttribute(name = "cols")
	private String cols;
	@XmlAttribute(name = "font-family")
	private String fontFamily;

	@XmlAttribute(name = "entity")
	private String entity;

	/**
	 * 是否旋转，如果为true，则为横向
	 */
	@XmlAttribute(name = "rotate")
	private String rotate;

	public String getRotate() {
		return rotate;
	}

	public void setRotate(String rotate) {
		this.rotate = rotate;
	}

	public Title getTitle() {
		return title;
	}

	public void setTitle(Title title) {
		this.title = title;
	}

	public List<Tr> getTrList() {
		return trList;
	}

	public void setTrList(List<Tr> trList) {
		this.trList = trList;
	}

	public String getCols() {
		return cols;
	}

	public void setCols(String cols) {
		this.cols = cols;
	}

	public String getFontFamily() {
		return fontFamily;
	}

	public void setFontFamily(String fontFamily) {
		this.fontFamily = fontFamily;
	}

	public String getEntity() {
		return entity;
	}

	public void setEntity(String entity) {
		this.entity = entity;
	}

}
